﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Text;
using NS.Utilities;
using NS.BLL.Systems;
using BLL;
using Model;

public partial class Platform_PartnerStic : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!Page.IsPostBack)
        {
            txtDate.Text = DateTime.Now.ToString("yyyy-MM");
            GridViewDataBind();
        }
    }

    private void GridViewDataBind()
    {

        FGridView1.SQLString = PartnerService.GetStic_SQL(Request.QueryString["no"], txtDate.Text.Trim());
        FGridView1.PKey = "MemberID";
        FGridView1.OrderName = "RelationDate";
        FGridView1.BindData();
        FGridView1.AddControl();
    }
    protected void btnSearch_Click(object sender, EventArgs e)
    {
        GridViewDataBind();
    }
}